package com.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Menu {//侧边导航栏
    //菜单编号
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    //菜单名称
    private String name;
    //菜单层级
    private Integer level;
    //部门
    private Integer affiliation;
    //图标
    private String icon;
    //跳转路径
    private String jump;
    //二级菜单
    @TableField(exist = false)
    private List<Menu> menu;
}
